package net.zjitc.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * @auther 郭梦婷
 * @create 2022-05-23 17:09:09
 * @describe 实体类
 */
@TableName("user")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value="User对象", description="")
@Data
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "账号")
    @TableField("username")
    private String username;

    @ApiModelProperty(value = "密码")
    @TableField("password")
    private String password;

    @ApiModelProperty(value = "权限id")
    @TableField("roleid")
    private Integer roleid;

    @ApiModelProperty(value = "个人信息id")
    @TableField("actorid")
    private Integer actorid;

    @ApiModelProperty(value = "注册时间")
    @TableField("create_time")
    private Date createTime;

    @TableField(exist = false)
    private Role roles;

}